Nature

@Serializable
data class Nature(val id: Int, val name: String, val decreasedStat: Handle.Named<Stat>?, val increasedStat: Handle.Named<Stat>?, val hatesFlavor: Handle.Named<BerryFlavor>?, val likesFlavor: Handle.Named<BerryFlavor>?, val pokeathlonStatChanges: List<NatureStatChange>, val moveBattleStylePreferences: List<MoveBattleStylePreference>, val names: List<Name>) : NamedModel(source)

Natures influence how a Pokémon's stats grow. See: https://pokeapi.co/docs/v2#natures

Parameters

id

The identifier for this nature resource.

name

The name for this nature resource.

decreasedStat

The stat decreased by 10% in Pokémon with this nature.

increasedStat

The stat increased by 10% in Pokémon with this nature.

hatesFlavor

The flavor hated by Pokémon with this nature.

likesFlavor

The flavor liked by Pokémon with this nature.

pokeathlonStatChanges

A list of changes to Pokeathlon stats for Pokémon with this nature.

moveBattleStylePreferences

A list of battle style preferences for Pokémon with this nature.

names

The name of this nature listed in different languages.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, decreasedStat: Handle.Named<Stat>?, increasedStat: Handle.Named<Stat>?, hatesFlavor: Handle.Named<BerryFlavor>?, likesFlavor: Handle.Named<BerryFlavor>?, pokeathlonStatChanges: List<NatureStatChange>, moveBattleStylePreferences: List<MoveBattleStylePreference>, names: List<Name>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard